package com.java.lesson.lesson1;

import java.util.Arrays;

public class Lesson15 {
    public static void main(String[] args) {
        int[] array={1,2,3,4,5};
        int[] arr=new int[3];

        for (int i = 0; i < array.length; i++) {
            System.out.println(array[i]);
        }
        for (int i : array) {
            System.out.println(i);
        }
        System.out.println(Arrays.toString(array));
    }
}
